package com.wskj.insuranceweb.reporter.mapper;

import com.wskj.insuranceweb.reporter.pojo.Client;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Repository
@Mapper
public interface ClientMapper {
    Client findClient(String id);
    @Insert("insert into client values(#{clientnumber},#{clientname},'100001',to_date(#{clientstart},'yyyy-MM-dd'),to_date(#{clientend},'yyyy-MM-dd'),#{clientorganization},#{beneficiary},#{beneficiaryphone},#{accidentid})")
    void addClient(Client client);

}
